﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ServiceModel;

namespace Server
{
    class Program
    {
        static void Main(string[] args)
        {
            // At startup time, all users are disconnected
            Service.Service.DisconnectAllUsers();

            // Start the service
            using (ServiceHost service = new ServiceHost(typeof(Service.Service)))
            {
                service.Open();

                Console.WriteLine("Server is running.");
                while(! Console.ReadLine().Equals("quit"))
                {
                    Console.WriteLine("=> Enter 'quit' to exit...");
                }
            }
        }
    }
}
